package com.niit.bean;

import java.sql.Timestamp;

public class Log {
	private String id;
	private Timestamp time;
	private String tableName;
	private String operatorIP;
	private String operateType;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Timestamp getTime() {
		return time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getOperatorIP() {
		return operatorIP;
	}
	public void setOperatorIP(String operatorIP) {
		this.operatorIP = operatorIP;
	}
	public String getOperateType() {
		return operateType;
	}
	public void setOperateType(int operateType) {
		switch (operateType) {
		case 0:
			this.operateType = "新增";
			break;
		case 1:
			this.operateType = "修改";
			break;
		case 2:
			this.operateType = "删除";
			break;
		default:
			break;
		}
	}
}
